package com.kd.xjoa.scheduled.schedule;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.kd.xjoa.scheduled.service.ScheduledService;
@Component
public class CombTotalScheduled {
	
	@Autowired
	private ScheduledService scheduledService;
	
	@Scheduled(fixedDelay = 3600000)
	public void totalCombMonitor(){
		scheduledService.totalCombMonitor();
		System.out.println("===========专题统计！===========");
	}
	
	@Scheduled(fixedDelay = 5000000)
	public void totalBussinessTypeMonitor(){
		scheduledService.totalBussinessTypeMonitor();
		System.out.println("===========平台数据统计===========");
	}
}
